package com.bdqn.entity;

import java.sql.Timestamp;

import com.bdqn.dao.BaseDao.Column;
import com.bdqn.dao.BaseDao.Id;

/**
 * Msg entity. @author MyEclipse Persistence Tools
 */

public class Msg implements java.io.Serializable {

	// Fields

	@Id
	private Integer msgid;
	private String username;
	private String title;
	private String msgcontent;
	private Integer state;
	private String sendto;
	@Column("msg_create_date")
	private Timestamp msgCreateDate;

	// Constructors

	/** default constructor */
	public Msg() {
	}

	/** full constructor */
	public Msg(String username, String title, String msgcontent, Integer state, String sendto,
			Timestamp msgCreateDate) {
		this.username = username;
		this.title = title;
		this.msgcontent = msgcontent;
		this.state = state;
		this.sendto = sendto;
		this.msgCreateDate = msgCreateDate;
	}

	// Property accessors

	public Integer getMsgid() {
		return this.msgid;
	}

	public void setMsgid(Integer msgid) {
		this.msgid = msgid;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getMsgcontent() {
		return this.msgcontent;
	}

	public void setMsgcontent(String msgcontent) {
		this.msgcontent = msgcontent;
	}

	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getSendto() {
		return this.sendto;
	}

	public void setSendto(String sendto) {
		this.sendto = sendto;
	}

	public Timestamp getMsgCreateDate() {
		return this.msgCreateDate;
	}

	public void setMsgCreateDate(Timestamp msgCreateDate) {
		this.msgCreateDate = msgCreateDate;
	}

}